package com.bzkj.basicinfo.mapper;

import com.bzkj.basicinfo.domain.ncc.NccBasicReducedUnit;
import com.bzkj.basicinfo.domain.ncc.dto.NccBasicReducedUnitDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * @Author wangzhichao
 * @ClassName NccBasicReducedUnitMapper
 * @Date 2024/12/09 15:42:53
 * @description
 */

public interface NccBasicReducedUnitMapper
{
    /**
     * 根据条件分页查询数据
     *
     * @Author wangzhichao
     * @Date 2024/12/09 15:48:37
     * @Param dto
     */
    List<NccBasicReducedUnit> findNccBasicReducedUnitData(NccBasicReducedUnitDto dto);

    /**
     * 根据pk_material修改信息
     *
     * @Author wangzhichao
     * @Date 2024/12/09 16:21:41
     * @Param entity
     */
    int nccBasicReducedUnitUpdate(NccBasicReducedUnit entity);

    /**
     * 新增换算系数信息
     *
     * @Author wangzhichao
     * @Date 2024/12/10 10:57:15
     * @Param entity
     */
    int nccBasicReducedUnitSave(NccBasicReducedUnit entity);

    Set<String> findNccBasicpkMeasdocSetList(@Param("pkMeasdoc") List<String> pkMeasdoc);

    /**
     * 同步基础数据
     * @param nccBasicReducedUnit 数据
     */
    void insertOrUpdate(@Param("item") NccBasicReducedUnit nccBasicReducedUnit);
}
